import django_filters
from .models import *


class CourseStudentFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    courseName = django_filters.CharFilter(field_name='course__name', lookup_expr='icontains')
    class Meta:
        model = CourseStudent
        fields = '__all__'
